package copyengine.ui.component.tree.dataprovider
{

	public class CETreeCellRenderData implements ICETreeCellRenderData
	{
		protected var subFoldCellRenderDataVector:Vector.<ICETreeCellRenderData>;

		private var _isSelected:Boolean;
		private var _isFold:Boolean;

		public function CETreeCellRenderData()
		{
			subFoldCellRenderDataVector = new Vector.<ICETreeCellRenderData>();
		}

		public function set isFold(_val:Boolean):void
		{
			_isFold = _val;
		}

		public function get isFold():Boolean
		{
			return _isFold;
		}

		public function getSubFoldCellRenderDataVector():Vector.<ICETreeCellRenderData>
		{
			return subFoldCellRenderDataVector;
		}

		public function isCanSelected():Boolean
		{
			return !subFoldCellRenderDataVector.length > 0;
		}

		public function set isSelected(_val:Boolean):void
		{
			_isSelected = _val;
		}

		public function get isSelected():Boolean
		{
			return _isSelected;
		}
	}
}
